package club.haomoon.core.entity.article;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.io.Serializable;

@Data
@Schema(title = "文章实体")
public class ArticleData implements Serializable {

    @TableId(value="id", type= IdType.AUTO)
   @Schema(title = "ID")
    private Integer id;

   @Schema(title = "分类")
    private Integer cid;

   @Schema(title = "标题")
    private String title;

   @Schema(title = "简介")
    @TableField(value = "`desc`")
    private String desc;

   @Schema(title = "摘要")
    @TableField(value = "abstract")
    private String abstractField;

   @Schema(title = "封面")
    private String image;

   @Schema(title = "内容")
    private String content;

   @Schema(title = "作者")
    private String author;

   @Schema(title = "虚拟浏览量")
    private Integer clickVirtual;

   @Schema(title = "实际浏览量")
    private Integer clickActual;

   @Schema(title = "排序")
    private Integer sort;

   @Schema(title = "是否显示: [0=否, 1=是]")
    private Integer isShow;

   @Schema(title = "创建时间")
    private Long createTime;

   @Schema(title = "更新时间")
    private Long updateTime;

   @Schema(title = "删除时间")
    private Long deleteTime;
}
